<div class="panel panel-inverse" data-sortable-id="table-basic-4" id="result">
    <div class="panel-heading">
        <small>商品列表</small>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered" style="font-size: 12px !important;">
            <thead>
            <tr>
                <th>选择</th>
                <th>图片</th>
                <th>商品ID</th>
                <th>商品名称</th>
            </tr>
            </thead>
            <tbody>
            <#if paginationResponse?has_content && paginationResponse.content?exists && paginationResponse.content?size gt 0>
                <#list paginationResponse.content as ct>
                <tr>
                    <td>
                        <input type="checkbox" value="${ct.id}" name="id" <#if selectGoodsIds?exists && selectGoodsIds?seq_contains(ct.id+"") >checked</#if>/>
                    </td>
                    <td>
                        <img class="m-r-20 m-b-10" src="${ct.logo}" style="border:1px solid #cccccc;width:80px;height:60px;border-radius: 5px;">
                    </td>
                    <td name="activityIdTD">
                        ${ct.id}
                    </td>
                    <td name="activityNameTD">${ct.name}<br>
                        <input type="hidden" name="goodsNameTD" value="${ct.name}"/>
                        <input type="hidden" name="goodsIdTD" value="${ct.id}"/>
                        <input type="hidden" name="goodsLogoTD" value="${ct.logo}"/>
                    </td>
                </tr>
                </#list>
            <#else>
            <tr class="gradeA even" role="row">
                <td colspan="11" class="text-center">没有符合条件的数据！</td>
            </tr>
            </#if>
            </tbody>
        </table>
        <@sp.pagination recordBean=paginationResponse action="${rc.contextPath}/backend/goods/goods/quickSearchGoods" formName="goodsForm"/>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $('#checkAll').click(function () {
            $("[name='id']").prop("checked",$("#checkAll").prop("checked"));
        })
    });
</script>